package com.intellagric.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping({"/user/login","/login","/"})
    public String toLogin() {
        return "login";
    }

    @RequestMapping({"/register"})
    public String register() {
        return "/register.jsp";
    }



    @RequestMapping("/admin")
    public String index(){
        return "index";
    }

    @RequestMapping("/admin/{page}")
    public String showPage(@PathVariable String page) {
        return page;
    }

}
